package cn.wgx.modules.sys.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
 * Description:
 * 
 *
 * @author 
 */
public class SysNotice implements Serializable {
    /**
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private Integer notice_id;

    /**
     * 标题
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private String title;

    /**
     * 内容
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private String content;

    /**
     * 显示类型（0正常 1置顶）
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private Integer type;

    /**
     * 学校id
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private Integer schoolId;

    /**
     * 班级id
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private Integer squadId;

    /**
     * 0正常，1删除
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private Integer del;

    /**
     * 创建人
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private Integer createUserId;

    /**
     * 创建时间
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private Date createDate;

    /**
     * 更新人
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private Integer updateUserId;

    /**
     * 更新时间
     *
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private Date updateDate;

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method returns the value of the database column education..sys_notice.notice_id
     *
     * @return the value of education..sys_notice.notice_id
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public Integer getNotice_id() {
        return notice_id;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withNotice_id(Integer notice_id) {
        this.setNotice_id(notice_id);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.notice_id
     *
     * @param notice_id the value for education..sys_notice.notice_id
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setNotice_id(Integer notice_id) {
        this.notice_id = notice_id;
    }

    /**
     * This method returns the value of the database column education..sys_notice.title
     *
     * @return the value of education..sys_notice.title
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public String getTitle() {
        return title;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withTitle(String title) {
        this.setTitle(title);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.title
     *
     * @param title the value for education..sys_notice.title
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * This method returns the value of the database column education..sys_notice.content
     *
     * @return the value of education..sys_notice.content
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public String getContent() {
        return content;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withContent(String content) {
        this.setContent(content);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.content
     *
     * @param content the value for education..sys_notice.content
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * This method returns the value of the database column education..sys_notice.type
     *
     * @return the value of education..sys_notice.type
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public Integer getType() {
        return type;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withType(Integer type) {
        this.setType(type);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.type
     *
     * @param type the value for education..sys_notice.type
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * This method returns the value of the database column education..sys_notice.schoolId
     *
     * @return the value of education..sys_notice.schoolId
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public Integer getSchoolId() {
        return schoolId;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withSchoolId(Integer schoolId) {
        this.setSchoolId(schoolId);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.schoolId
     *
     * @param schoolId the value for education..sys_notice.schoolId
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setSchoolId(Integer schoolId) {
        this.schoolId = schoolId;
    }

    /**
     * This method returns the value of the database column education..sys_notice.squadId
     *
     * @return the value of education..sys_notice.squadId
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public Integer getSquadId() {
        return squadId;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withSquadId(Integer squadId) {
        this.setSquadId(squadId);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.squadId
     *
     * @param squadId the value for education..sys_notice.squadId
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setSquadId(Integer squadId) {
        this.squadId = squadId;
    }

    /**
     * This method returns the value of the database column education..sys_notice.del
     *
     * @return the value of education..sys_notice.del
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public Integer getDel() {
        return del;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withDel(Integer del) {
        this.setDel(del);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.del
     *
     * @param del the value for education..sys_notice.del
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setDel(Integer del) {
        this.del = del;
    }

    /**
     * This method returns the value of the database column education..sys_notice.createUserId
     *
     * @return the value of education..sys_notice.createUserId
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public Integer getCreateUserId() {
        return createUserId;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withCreateUserId(Integer createUserId) {
        this.setCreateUserId(createUserId);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.createUserId
     *
     * @param createUserId the value for education..sys_notice.createUserId
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * This method returns the value of the database column education..sys_notice.createDate
     *
     * @return the value of education..sys_notice.createDate
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withCreateDate(Date createDate) {
        this.setCreateDate(createDate);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.createDate
     *
     * @param createDate the value for education..sys_notice.createDate
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * This method returns the value of the database column education..sys_notice.updateUserId
     *
     * @return the value of education..sys_notice.updateUserId
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withUpdateUserId(Integer updateUserId) {
        this.setUpdateUserId(updateUserId);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.updateUserId
     *
     * @param updateUserId the value for education..sys_notice.updateUserId
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }

    /**
     * This method returns the value of the database column education..sys_notice.updateDate
     *
     * @return the value of education..sys_notice.updateDate
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public SysNotice withUpdateDate(Date updateDate) {
        this.setUpdateDate(updateDate);
        return this;
    }

    /**
     * This method sets the value of the database column education..sys_notice.updateDate
     *
     * @param updateDate the value for education..sys_notice.updateDate
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", notice_id=").append(notice_id);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", type=").append(type);
        sb.append(", schoolId=").append(schoolId);
        sb.append(", squadId=").append(squadId);
        sb.append(", del=").append(del);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateUserId=").append(updateUserId);
        sb.append(", updateDate=").append(updateDate);
        sb.append("]");
        return sb.toString();
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysNotice other = (SysNotice) that;
        return (this.getNotice_id() == null ? other.getNotice_id() == null : this.getNotice_id().equals(other.getNotice_id()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getSchoolId() == null ? other.getSchoolId() == null : this.getSchoolId().equals(other.getSchoolId()))
            && (this.getSquadId() == null ? other.getSquadId() == null : this.getSquadId().equals(other.getSquadId()))
            && (this.getDel() == null ? other.getDel() == null : this.getDel().equals(other.getDel()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateUserId() == null ? other.getUpdateUserId() == null : this.getUpdateUserId().equals(other.getUpdateUserId()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
    }

    /**
     *
     * @mbg.generated Thu Dec 26 17:19:47 CST 2019
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNotice_id() == null) ? 0 : getNotice_id().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getSchoolId() == null) ? 0 : getSchoolId().hashCode());
        result = prime * result + ((getSquadId() == null) ? 0 : getSquadId().hashCode());
        result = prime * result + ((getDel() == null) ? 0 : getDel().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateUserId() == null) ? 0 : getUpdateUserId().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        return result;
    }
}